package xyz.zhzby.cyzx.cms.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author zby
 * @date 2021/12/12
 */
@Data
@ApiModel("文章返回类封装")
public class ArticleResponse {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "摘要")
    private String summary;

    @ApiModelProperty(value = "内容ID")
    private Long contentId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "状态（0草稿1发布）")
    private Integer status;

    @ApiModelProperty(value = "标签列表(ID与name)")
    private List<Info> tags;

    @ApiModelProperty(value = "分栏列表(ID与name)")
    private List<Info> channels;

    @ApiModelProperty(value = "文章拥有者ID")
    private Long userId;

    @ApiModelProperty(value = "文章拥有者昵称")
    private String nickName;

    @ApiModelProperty(value = "文章拥有者头像")
    private String avatar;

    @ApiModelProperty("文章发布时间")
    private Date publishTime;

    @ApiModelProperty("阅读量")
    private int viewCount;

    @ApiModelProperty("点赞量")
    private int likeCount;

    @ApiModelProperty("收藏量")
    private int collectCount;

    @ApiModelProperty("评论量")
    private int commentCount;


}
